'use strict';

const
    { spawn } = require( 'child_process' ),
    ls = spawn( 'apidoc', [ '-i', 'routes' ] );

ls.stdout.on( 'data', data => {
    console.log( `stdout: ${data}` );
} );

ls.stderr.on( 'data', data => {
    console.log( `stderr: ${data}` );
} );

ls.on( 'close', code => {
    console.log( `child process exited with code ${code}` );
} );
//apidoc -i routes -o doc
